/* black filled arrow's head*/
package renders.edge.arrows
{
	import flash.display.Graphics;
	import flash.geom.Point;
	import renders.edge.ExtendedEdge;
	
	public class DefaultHead implements IArrowHeadDrawer
	{
		
		
		public function DefaultHead()
		{
		}

	
		public function drawArrowsHead(_g:Graphics, drawer:ExtendedEdge,color:Number,alpha:Number, toX:Number, toY:Number,  arrowLine1:Object, arrowLine2:Object):void
		{
			drawer.move(_g, toX, toY);
     		_g.beginFill(color,1);
     		_g.lineStyle(1, color, alpha);
           	drawer.line(_g, arrowLine1.x, arrowLine1.y);            
            drawer.line(_g, arrowLine2.x, arrowLine2.y);
           	drawer.line(_g, toX, toY);
            _g.endFill(); 
            
		}
		
	}
}